﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using System;

public class SetupConnectionUI : MonoBehaviour {

	public Text ipAddress;
	public Text device;
	// Use this for initialization
	void Start () {
		try {
		ipAddress.text = Connections.ServerManager.getInstance ().getIPAddress ();
		} catch(Exception e) {
			Debug.Log(e.ToString());
		}
	}
	
	// Update is called once per frame
	void Update () {
		try {
		device.text = Connections.ServerManager.getInstance ().getDeviceName ();
		} catch(Exception e) {
			Debug.Log(e.ToString());
		}
	}
}
